<table class="table table-responsive" id="labels-table">
    <thead>
        <th>名称</th>
        <th>图片</th>
        <th>是否显示</th>
        <th>类型</th>
        <th>是否限制</th>
        <th>排序值</th>
        <th colspan="3">操作</th>
    </thead>
    <tbody>
    @foreach($labels as $label)
        <tr>
            <td>{!! $label->title !!}</td>
            <td>@tpic($label->pic)</td>
            <td>{!! $label->is_show==1?'显示':'不显示' !!}</td>
            <td>{!! $label->type==1?'默认显示':'首页显示' !!}</td>
            <td>{!! $label->limit==1?'是':'否' !!}</td>
            <td>{!! $label->sort !!}</td>
            <td>
                {!! Form::open(['route' => ['labels.destroy', $label->id], 'method' => 'delete']) !!}
                <div class='btn-group'>
                    <a href="{!! route('labels.show', [$label->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>
                    <a href="{!! route('labels.edit', [$label->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>
                    {!! Form::button('<i class="glyphicon glyphicon-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}
                </div>
                {!! Form::close() !!}
            </td>
        </tr>
    @endforeach
    </tbody>
</table>